package pl.elka.simulator.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import pl.elka.simulator.core.configurationCommand.ConfigurationCommandType;
import pl.elka.simulator.mediator.ActionType;
import pl.elka.simulator.mediator.ActionValue;
import pl.elka.simulator.mediator.SimulationFasade;

public class ChooseConfigurationCommandTypeListener implements ActionListener{

	private ConfigurationCommandType commandType;	

	public ChooseConfigurationCommandTypeListener(ConfigurationCommandType commandType) {
		super();
		this.commandType = commandType;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {		
		SimulationFasade.getInstance().handleAction(ActionType.BeginConfigurationParamCreation, new ActionValue(commandType));
	}

}
